<?php
include_once($_SERVER['DOCUMENT_ROOT']."/collect/Lib/ORG/H2c.class.php");
if ($gather_type == 1 && preg_match("/tmall\.com/Uisx", $this->url, $nn)) {
    $url = $this->url;
    $c = $GLOBALS['mycurl']->result("", $url);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36");
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-Language:  en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ja;q=0.6,bg;q=0.5"));
    curl_setopt($ch, CURLOPT_COOKIE,$c->cookie);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, "false");
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, "2");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
    curl_setopt($ch, CURLOPT_VERBOSE,1);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Host:{$c->qhost}","Connection:  keep-alive","Accept:  text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","Accept-Language:  en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ja;q=0.6,bg;q=0.5"));
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    $result=curl_exec($ch);
    $c->result($result,$url);
    curl_close($ch);
    $pagehtml=$result;


}
?>